import plotly_express as px

# 1.内置数据查看
df = px.data.iris()
print(df.head())

# 指定颜色：字符型数据 映射到颜色
fig = px.scatter_3d(
    df,
    x="sepal_length",
    y="sepal_width",
    z="petal_length",
    color="species",
)
fig.show()
